package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.dto.ScmPurchaseInstockParam;
import com.xinsoft.entity.po.ScmPurchaseInstock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinsoft.entity.vo.ScmPurchaseInstockPageVo;
import com.xinsoft.entity.vo.ScmPurchaseInstockVo;

/**
* @author ZYM
* @description 针对表【scm_purchase_instock(采购入库)】的数据库操作Mapper
* @createDate 2023-07-26 16:56:09
* @Entity com.xinsoft.entity.po.ScmPurchaseInstock
*/
public interface ScmPurchaseInstockMapper extends BaseMapper<ScmPurchaseInstock> {

    IPage<ScmPurchaseInstockPageVo> findPageListByParam(Page<ScmPurchaseInstockPageVo> page, ScmPurchaseInstockParam param);

    ScmPurchaseInstockVo getPurchaseInstockById(Integer id);

    /**
     * 获取被采购退货引用的数量
     * @param id 采购入库id
     * @return int
     */
    int getPurchaseReturnCiteCount(Integer id);
}




